<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link rel="stylesheet" href="<?php echo $this->baseUrl;?>/files/admin/css/login.css" />
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/jquery.js"></script>
<script language="javascript">
	function checkPass(){
		var password = $('input#password').val();
		if(password.length < 8 || password.length > 30){
			alert("密码中必须含有数字，小写字母，大写字母，长度必须在8-30范围内。");
			return false;
		}
		if(!password.match(/[A-Z]+/) || !password.match(/[a-z]+/) ||!password.match(/[0-9]+/) ){
			alert("密码中必须含有数字，小写字母，大写字母，长度必须在8-30范围内。");
			return false;
		}
		if(password != $('input#password2').val()){
			alert("两次输入密码不一致");
			return false;
		}
	}
</script>
</head>

<body>
<?php echo $this->render('top.php');?>



				<table width="920" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td height="50" align="left">&nbsp;</td>
                  </tr>
                  <tr>
                    <td height="35" align="left" style=" border-bottom:1px solid #484848; font-size:14px; font-weight:bold">设置BI密码</td>
                  </tr>
                  <tr>
                    <td height="35" align="left">欢迎使用BI平台，初次使用或管理员修改了您的密码，请重新设置您的平台密码：</td>
                  </tr>
                </table>
				<form id="editForm" name="editForm" method="post" onsubmit="return checkPass();" action="<?php echo $this->projectUrl(array('action'=>'first-login-edit-password', 'userName'=>$this->userName));?>">
					<table width="920" align="center" class="table">

						<tr>
						  <td align="right">&nbsp;</td>
						  <td align="left">&nbsp;</td>
					  </tr>
						<tr>
							<td align="right">新密码：</td>
						  <td align="left"><input name="password" type="password" class="input" id="password" value="" size="30" style="width:300px;" />
						     &nbsp;&nbsp;必须含有数字，小写字母，大写字母，且在8-30字符以内</td>
						</tr>
						<tr>
							<td align="right">确认新密码：</td>
							<td align="left"><input name="password2" type="password" class="input" id="password2" value="" size="30" style="width:300px;" /></td>
						</tr>
						<tr>
						  <td>&nbsp;</td>
						  <td><input type="submit" name="button2" id="button2" value="提交" class="button" />
					      <input onclick="javascript:location.href='<?php echo $this->projectUrl(array('controller'=>'login','action'=>'logout'));?>'" type="button" name="button22" id="button22" value="重新登录" class="button" /></td>
					  </tr>
						<tr>
							<td height="250">&nbsp;</td>
							<td>&nbsp;</td>
						</tr>
				  </table>
				</form>
				
<div id="foot">
	<p>关于我们 | 微博 | Blog | 服务条款 | 隐私政策</p>
	<p>沪ICP备11037374号-2 &copy;2010-2011 Yek All Rights Reserved. </p>
</div>

</body>
</html>